package com.yydm.serviceedu.client;

import com.yydm.commonutils.R;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Classname VodClient
 * @Description TODO
 * @Version 1.0.0
 * @Date 2022/6/30 15:34
 * @Created by liu25
 */

@FeignClient(value = "yydm-service-vod", fallback = VodClientImpl.class)
@Component
public interface VodClient {
    //        调用vod的删除视频点播
    @DeleteMapping("/vod/video/removeVideo/{videoId}")
    public R removeVideo(@ApiParam(name = "videoId", value = "云端视频ID", required = false)
                         @PathVariable("videoId") String videoId);

}
